#include "Poller.h"
#include "EPoller.h"
#include "PPoller.h"
#include "Eventloop.h"

Poller::Poller(Eventloop *loop):
    _ownerLoop(loop)
{
}

Poller::~Poller() {
    
}

Poller *Poller::new_defatult_poller(Eventloop *loop) {
    return new EPoller(loop);
}

 void Poller::assert_in_loopthread() {
    _ownerLoop->ASSERT_IN_THIS_THREAD();
}